//
//  SaveOtherViewController.m
//  A段项目,漫画
//
//  Created by dlios on 15-4-23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SaveOtherViewController.h"
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height
@interface SaveOtherViewController ()

@end

@implementation SaveOtherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"待定收藏";
    self.view.backgroundColor = [UIColor purpleColor];
    
    [self creatView];
    
    
}

#pragma mark 创建视图
-(void)creatView
{
    self.WaitTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT) style:UITableViewStylePlain];
    [self.view addSubview:self.WaitTableView];
    [_WaitTableView release];
    
    self.WaitTableView.delegate = self;
    self.WaitTableView.dataSource = self;
    
    //设置清空按钮
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"清空" style:UIBarButtonItemStylePlain target:self action:@selector(clear)];
    
}

//清空按钮
-(void)clear
{
    NSLog(@"点击清空收藏");
}

#pragma mark 两个协议方法
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 30;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString *reuse = @"reuse";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuse];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuse]autorelease];
    }
    return cell;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
